package top.sssd.spi.main;

import top.sssd.spi.api.GreetingService;

import java.util.ServiceLoader;

public class Main {
    public static void main(String[] args) {
        ServiceLoader<GreetingService> loader
                = ServiceLoader.load(GreetingService.class);
        for (GreetingService greetingService : loader) {
            greetingService.sayHello("sssd");
            System.out.println(greetingService.toString());
        }
    }
}
